import request from '@/utils/request'

export default{
  // 分页获取订单列表
  getOrderPage(current,size) {
    return request({
      url: '/api/order/getOrderPage/' + current + '/' + size,
      method: 'get'
    })
  },

  // 根据用户名来分页查询订单
  getOrderByUserName(userName, current, size) {
    return request({
      url: '/api/order/getOrderByUserName/' + userName + '/' + current + '/' + size,
      method: 'get'
    })
  },

  //admin删除订单
  deleteOrderByOrderId(orderId) {
    return request({
      url: '/api/order/deleteOrderByOrderId/' + orderId,
      method: 'delete'
    })
  }

}
